public class TriggerTask extends Task
ScheduledTaskRegistrar.addTriggerTask(TriggerTask)
,
TaskScheduler.schedule(Runnable, Trigger)
Constructor and Description |
---|
TriggerTask(java.lang.Runnable runnable,
Trigger trigger)
Create a new
TriggerTask . |
Modifier and Type | Method and Description |
---|---|
Trigger |
getTrigger()
Return the associated trigger.
|
getRunnable, toString
private final Trigger trigger
public TriggerTask(java.lang.Runnable runnable, Trigger trigger)
TriggerTask
.runnable
- the underlying task to executetrigger
- specifies when the task should be executedpublic Trigger getTrigger()